---
- name: Ensure git config dir exists
  ansible.builtin.file:
    dest: "{{ git_conf_dir }}"
    state: directory

- name: Link config
  ansible.builtin.file:
    src: "{{ role_path }}/files/config.ini"
    dest: "{{ git_conf_dir }}/config"
    state: link
    force: true

- name: Link gitignore
  ansible.builtin.file:
    src: "{{ role_path }}/files/gitignore"
    dest: "{{ git_conf_dir }}/.gitignore"
    state: link
    force: true

- name: Link helpers
  ansible.builtin.file:
    src: "{{ role_path }}/files/helpers.bash"
    dest: "{{ git_conf_dir }}/helpers"
    state: link
    force: true
